/**
 * 注意事项
 * 具体使用方法参考framework中store模块
 * 文件名不要与framework中store模块文件名重复
 * @returns
 */
const getDefaultState = () => {
  return {
    count: 0
  }
}
const state = getDefaultState()

const mutations = {
  SHOPCARCOUNT: (state, count) => {
    state.count = count
  }
}

const actions = {
  shopCarCount({ commit }, count) {
    commit('SHOPCARCOUNT', count)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

